package com.daiyang.pojo;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserInfoRegisterRequest {
    @NotBlank(message = "⽤⼾名不能为空")
    @Length(max = 20, message = "⽤⼾名⻓度不能超过20")
    private String userName;
    @NotBlank(message = "密码不能为空")
    @Length(max = 20, message = "密码⻓度不能超过20")
    private String password;
    @Length(max = 64, message = "githubUrl不能超过64位")
    private String githubUrl;
    @NotBlank(message = "⽤⼾邮箱不能为空！")
    private String email;
}